package com.ttl.bc.stock.request2.bean;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;

import com.ttl.bc.master.issuetype.BCIssueTypeBean;

@SuppressWarnings("serial")
public class BCStkIssue2 implements Serializable {
		
	private String 	docNo;			//เลขที่เอกสาร

	private Date 	docDate;		//วันที่เอกสาร	
	private String 	departCode;		//แผนก
	private String 	issueType;		//ประเภทการเบิก
	private String 	personCode;		//ผู้เบิก
	private Integer	isCompleteSave;
	
	private String 	creatorCode;	//ผู้สร้างรายการ
	private Date 	createDateTime;	//เวลาที่สร้างรายการ
	private String 	lastEditorCode;	//ผู้แก้ไขรายการ
	private Date 	lastEditDateT;	//เวลาที่แก้ไขรายการ
	private String	myDescription;//
	
	private Integer billStatus;
	private Integer	isCancel;	
	
	@SuppressWarnings("unchecked")
	private Set bcStkIssueSub2s;

	private BCIssueTypeBean bcIssueTypeBean;	
	//private BCProjectBean 	bcProjectBean;	
	private String 	projectCode;	//code, name ของโครงการ อยู่ใน BCProjectBean

	private String 	iTTL_orderNo;		//เลข orderfNo.
	private String 	iTTL_deptPay;		//ฝ่ายชำระเงิน
	private String	iTTL_status;		//status ของการเบิก
	
	private Integer 	ittl_userLevel;		//ใช้เพื่อแยกการเข้าถึงเอกสารระดับ userlevel
	
	private String 	mode;				//ไม่ได้ไว้เก็บข้อมูลลง db แต่เอาไว้สร้าง link -> edit, print, view, delete ใน displaytag
			
	
	//query
	private	Integer	hasInBCtrans;
	
	public Integer getHasInBCtrans() {
		return hasInBCtrans;
	}

	public void setHasInBCtrans(Integer hasInBCtrans) {
		this.hasInBCtrans = hasInBCtrans;
	}

	public Integer getIttl_userLevel() {
		return ittl_userLevel;
	}

	public void setIttl_userLevel(Integer ittlUserLevel) {
		ittl_userLevel = ittlUserLevel;
	}

	public Integer getIsCancel() {
		return isCancel;
	}

	public void setIsCancel(Integer isCancel) {
		this.isCancel = isCancel;
	}

	public String getiTTL_status() {
		return iTTL_status;
	}

	public void setiTTL_status(String iTTLStatus) {
		iTTL_status = iTTLStatus;
	}

	public String getMode() {
		return mode;
	}

	public void setMode(String mode) {
		this.mode = mode;
	}

//	public BCProjectBean getBcProjectBean() {
//		return bcProjectBean;
//	}
//
//	public void setBcProjectBean(BCProjectBean bcProjectBean) {
//		this.bcProjectBean = bcProjectBean;
//	}

	public String getiTTL_deptPay() {
		return iTTL_deptPay;
	}

	public void setiTTL_deptPay(String iTTLDeptPay) {
		iTTL_deptPay = iTTLDeptPay;
	}

	public BCIssueTypeBean getBcIssueTypeBean() {
		return bcIssueTypeBean;
	}

	public void setBcIssueTypeBean(BCIssueTypeBean bcIssueTypeBean) {
		this.bcIssueTypeBean = bcIssueTypeBean;
	}

	public String getMyDescription() {
		return myDescription;
	}

	public void setMyDescription(String myDescription) {
		this.myDescription = myDescription;
	}

	public String getDocNo() {
		return docNo;
	}

	public String getiTTL_orderNo() {
		return iTTL_orderNo;
	}

	public void setiTTL_orderNo(String iTTLOrderNo) {
		iTTL_orderNo = iTTLOrderNo;
	}

	public void setDocNo(String docNo) {
		this.docNo = docNo;
	}

	public Date getDocDate() {
		return docDate;
	}

	public void setDocDate(Date docDate) {
		this.docDate = docDate;
	}

	public String getDepartCode() {
		return departCode;
	}

	public void setDepartCode(String departCode) {
		this.departCode = departCode;
	}

	public String getIssueType() {
		return issueType;
	}

	public void setIssueType(String issueType) {
		this.issueType = issueType;
	}

	public String getPersonCode() {
		return personCode;
	}

	public void setPersonCode(String personCode) {
		this.personCode = personCode;
	}



	public Integer getIsCompleteSave() {
		return isCompleteSave;
	}

	public void setIsCompleteSave(Integer isCompleteSave) {
		this.isCompleteSave = isCompleteSave;
	}

	public String getCreatorCode() {
		return creatorCode;
	}

	public void setCreatorCode(String creatorCode) {
		this.creatorCode = creatorCode;
	}

	public Date getCreateDateTime() {
		return createDateTime;
	}

	public void setCreateDateTime(Date createDateTime) {
		this.createDateTime = createDateTime;
	}

	public String getLastEditorCode() {
		return lastEditorCode;
	}

	public void setLastEditorCode(String lastEditorCode) {
		this.lastEditorCode = lastEditorCode;
	}

	public Date getLastEditDateT() {
		return lastEditDateT;
	}

	public void setLastEditDateT(Date lastEditDateT) {
		this.lastEditDateT = lastEditDateT;
	}

	@SuppressWarnings("unchecked")
	public Set getBcStkIssueSub2s() {
		return bcStkIssueSub2s;
	}

	@SuppressWarnings("unchecked")
	public void setBcStkIssueSub2s(Set bcStkIssueSub2s) {
		this.bcStkIssueSub2s = bcStkIssueSub2s;
	}

	public Integer getBillStatus() {
		return billStatus;
	}

	public void setBillStatus(Integer billStatus) {
		this.billStatus = billStatus;
	}

	public void setProjectCode(String projectCode) {
		this.projectCode = projectCode;
	}

	public String getProjectCode() {
		return projectCode;
	}

	@Override
	public String toString() {
		return "BCStkIssue2 [docNo=" + docNo + ", docDate=" + docDate
				+ ", departCode=" + departCode + ", issueType=" + issueType
				+ ", personCode=" + personCode + ", isCompleteSave="
				+ isCompleteSave + ", creatorCode=" + creatorCode
				+ ", createDateTime=" + createDateTime + ", lastEditorCode="
				+ lastEditorCode + ", lastEditDateT=" + lastEditDateT
				+ ", myDescription=" + myDescription + ", billStatus="
				+ billStatus + ", isCancel=" + isCancel + ", bcStkIssueSub2s="
				+ bcStkIssueSub2s + ", bcIssueTypeBean=" + bcIssueTypeBean
				+ ", projectCode=" + projectCode + ", iTTL_orderNo="
				+ iTTL_orderNo + ", iTTL_deptPay=" + iTTL_deptPay
				+ ", iTTL_status=" + iTTL_status + ", ittl_userLevel="
				+ ittl_userLevel + ", mode=" + mode + ", hasInBCtrans="
				+ hasInBCtrans + "]";
	}


	
}
